package com.geologyoa.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.geologyoa.domain.Dwqk01;
import com.geologyoa.domain.Dwzz01;
import com.geologyoa.service.SystemManager;
import com.geologyoa.service.SystemManagerImpl;

public class UpdateDwzz01Servlet extends HttpServlet {
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
       doPost(request,response);
	}

	
	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		SystemManager sys=new SystemManagerImpl();
		response.setContentType("text/xml;charset=utf-8");
		Dwzz01 dwzz01=new Dwzz01();
		String DWZZ0101=request.getParameter("DWZZ0101");
		String DWZZ0102=request.getParameter("DWZZ0102");
		String DWZZ0103=request.getParameter("DWZZ0103");
		String DWZZ0104=request.getParameter("DWZZ0104");
		String DWZZ0105=request.getParameter("DWZZ0105");
		String DWZZ0106=request.getParameter("DWZZ0106");
		String DWZZ0107=request.getParameter("DWZZ0107");
		String DWZZ0108=request.getParameter("DWZZ0108");
		String DWZZ0109=request.getParameter("DWZZ0109");
		String DWZZ0118=request.getParameter("DWZZ0118");
		String DWZZ0119=request.getParameter("DWZZ0119");
		dwzz01.setDwzz0101(Integer.parseInt(DWZZ0101));
		dwzz01.setDwzz0102(DWZZ0102);
		dwzz01.setDwzz0103(DWZZ0103);
		dwzz01.setDwzz0104(DWZZ0104);
		dwzz01.setDwzz0105(DWZZ0105);
		dwzz01.setDwzz0106(DWZZ0106);
		dwzz01.setDwzz0107(DWZZ0107);
		dwzz01.setDwzz0108(DWZZ0108);
		dwzz01.setDwzz0109(DWZZ0109);
		dwzz01.setDwzz0118(DWZZ0118);
		dwzz01.setDwzz0119(DWZZ0119);
   		boolean flag=sys.UpdateDwzz(dwzz01);
		if(flag==true)
		{
			response.getWriter().write("true");
		}else{
			response.getWriter().write("false");
		}
	
	}

}
